package com.help10000.rms.mvp.presenter

import com.amir.common.api.CustomObserver
import com.amir.common.beans.OrderWrapperEntity
import com.amir.common.mvp.model.Model
import com.amir.common.mvp.presenter.BasePresenter
import com.amir.common.utils.Constant
import com.amir.common.utils.SPUtils
import com.help10000.rms.mvp.view.OverTimeOrderView

class OverTimeOrderPresenter(view: OverTimeOrderView) : BasePresenter<OverTimeOrderView>(view) {
    fun overTimeOrderList(pageNo: Int) {
        val AccessToken = SPUtils.getString(Constant.AccessToken)
        val kw = ""
        val overTimeOrderList = Model.getServer().overTimeOrderList(AccessToken, kw, pageNo)
        Model.getObservable(overTimeOrderList, object : CustomObserver<OrderWrapperEntity>(mvpView) {

            override fun success(t: OrderWrapperEntity) {
               // mvpView?.on(t.)
            }
        })
    }
}